package com.yedou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yedou.entity.dto.PageDTO;
import com.yedou.entity.dto.PeopleQuery;
import com.yedou.entity.po.People;
import com.yedou.entity.vo.PeopleVO;

import java.util.List;

public interface IPeopleService extends IService<People> {
    void deductBalance(Long id, Integer money);

    List<People> queryPeoples(String name, Integer status, Integer minBalance, Integer maxBalance);

    PeopleVO queryPeopleById(Long id);

    PageDTO<PeopleVO> queryUsersByPage(PeopleQuery peopleQuery);
}
